import request from "@/utils/request";

// 查询平台报订阅列表
export function selectLabelList(query) {
  return request({
    url: "/automatic/subscription/selectLabelList",
    method: "get",
    params: query,
  });
}
// 查询平台报订阅列表
export function listSubscription(query) {
  return request({
    url: "/automatic/subscription/list",
    method: "get",
    params: query,
  });
}
// 查询平台报订阅详细
export function getSubscription(id) {
  return request({
    url: "/automatic/subscription/" + id,
    method: "get",
  });
}

// 新增平台报订阅
export function addSubscription(data) {
  return request({
    url: "/automatic/subscription",
    method: "post",
    data: data,
  });
}
// 新增平台报订阅
export function downloadByLabel(data) {
  return request({
    url: "/automatic/subscription/downloadByLabel",
    method: "post",
    data: data,
  });
}
// 新增平台报订阅
export function downloadByIds(data) {
  return request({
    url: "/automatic/subscription/downloadByIds",
    method: "post",
    data: data,
  });
}
// 修改平台报订阅
export function updateSubscription(data) {
  return request({
    url: "/automatic/subscription",
    method: "put",
    data: data,
  });
}

// 删除平台报订阅
export function delSubscription(id) {
  return request({
    url: "/automatic/subscription/" + id,
    method: "delete",
  });
}
